﻿<!DOCTYPE>
<HTML lang="en" xmlns:th="http://www.thymeleaf.org"><HEAD><TITLE>爱家租房 - 首页</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css href="/css/style.css">
<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY>
<DIV id=header class=wrap>
<DIV id=logo><IMG src="/images/logo.gif"></DIV></DIV>
<DIV id=navbar class=wrap>
<DL class="search clearfix">
  <FORM id=sform method=post action="/house/selectAllHouse">
  <DT>
  <UL>
    <LI class=bold>房屋信息</LI>
    <LI>标题：<INPUT class=text type=text name=title> <LABEL class=ui-blue><INPUT value=搜索房屋 type=submit name=search></LABEL>
    </LI></UL></DT>
  <DD>
  <UL>
    <LI class=first>价格 </LI>
    <LI><SELECT name=price> <OPTION selected value="">不限</OPTION> <OPTION 
      value=0-100>100元以下</OPTION> <OPTION value=100-200>100元—200元</OPTION> 
      <OPTION value=200-1000000>200元以上</OPTION></SELECT> </LI></UL></DD>
  <DD>
  <UL>
    <LI class=first>房屋位置</LI>
    <LI>

      <SELECT id=street name="sid">
        <OPTION selected  value="">不限</OPTION>
        <span th:each="street:${streetList}">
          <option th:value="${street.id}">[(${street.name})]</option>
        </span>
      </SELECT>

    </LI>
  </UL>
  </DD>
  <DD>
  <UL>
    <LI class=first>房型</LI>
    <LI>

      <SELECT id=typeId name="typeId">
        <OPTION selected  value="">不限</OPTION>
        <span th:each="htype:${htypeList}">
          <option th:value="${htype.id}">[(${htype.name})]</option>
        </span>
      </SELECT>

    </LI></UL></DD>
  <DD>
  <UL>
    <LI class=first>面积 </LI>
    <LI><SELECT name=floorage> <OPTION selected value="">不限</OPTION> <OPTION 
      value=0-40>40以下</OPTION> <OPTION value=40-500>40-500</OPTION> <OPTION 
      value=500-1000000>500以上</OPTION></SELECT> </LI></UL></DD></FORM></DL></DIV>
<DIV class="main wrap">
<TABLE class=house-list>
  <TBODY style="margin-left: -300px">
  <TR>无租房信息</TR>

  <TR th:each="house:${pageInfo.getList()}" class="odd">
    <td class=house-thumb><span><A th:href="@{'/house/detalis?id='+${house.id}}" target="_blank">
      <img th:src="@{'/images/'+${house.imagename}}" alt="" width="70px" height="70px">
    </a></span></td>
    <td>
      <dl>
        <dt><A th:href="@{'/house/detalis?id='+${house.id}}" target="_blank">[(${house.title})]</A></dt>
        <dd>[(${house.street.dname})],[(${house.street.name})],[(${house.floorage})]平米<BR>联系方式：[(${house.contact})] </dd></dl></td>
    <td class=house-type>[(${house.tname})]</td>
    <td class=house-price><SPAN>[(${house.price})]</SPAN>元/月</td>
  </TR>

</TBODY>
</TABLE>

<DIV class=pager>

  <span th:text="${pageInfo.getTotal()}"></span>条数据
  <span th:text="${pageInfo.pageNum}"></span>/<span th:text="${pageInfo.pages}"></span>页
  <span th:if="${pageInfo.isFirstPage==true}"><a th:href="@{/house/selectAllHouse(pageNum=1,title=${search.title},price=${search.price},sid=${search.sid},typeId=${search.typeId},floorage=${search.floorage})}">上一页</a></span>
  <span th:if="${pageInfo.isFirstPage==false}"><a th:href="@{/house/selectAllHouse(pageNum=${pageInfo.pageNum-1},title=${search.title},price=${search.price},sid=${search.sid},typeId=${search.typeId},floorage=${search.floorage})}" >上一页</a></span>
  <span th:each="index: ${#numbers.sequence(1,pageInfo.pages)}">
                        <a th:href="@{/house/selectAllHouse(pageNum=${index},title=${search.title},price=${search.price},sid=${search.sid},typeId=${search.typeId},floorage=${search.floorage})}" >[(${index})]</a>
                    </span>
  <span th:if="${pageInfo.isLastPage==true}"><a th:href="@{/house/selectAllHouse(pageNum=${pageInfo.pages},title=${search.title},price=${search.price},sid=${search.sid},typeId=${search.typeId},floorage=${search.floorage})}" >下一页</a></span>
  <span th:if="${pageInfo.isLastPage==false}"><a th:href="@{/house/selectAllHouse(pageNum=${pageInfo.pageNum+1},title=${search.title},price=${search.price},sid=${search.sid},typeId=${search.typeId},floorage=${search.floorage})}">下一页</a></span>


<DIV id=footer class=wrap>
<DL>
<DT>爱家租房 © 2010 北大爱家 京ICP证1000001号</DT>
<DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>
